package com.xz.disk.utils;

/**
 * @program: Official
 * @description: 响应代码
 * @author: Shawn
 * @create: 2019-11-13 10:28
 **/
public enum ResCode {
    SUCCESS("成功", 200),
    FAIL("失败", 400),
    ERROR("错误", 500);


    // 成员变量
    private String name;
    private int index;

    // 构造方法
    private ResCode(String name, int index) {
        this.name = name;
        this.index = index;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }
}
